﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MySite.Master" Inherits="System.Web.Mvc.ViewPage<CaifenWeb.Models.MemberModels>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    欢迎您的到来--资料完善页
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="mainBlock">
        <div class="Sright">
            <div class="loginBox">
                <input type="hidden" id="hidBindUid" value="<%=Model.memInfoObj.WeiBoUID %>" />
                <input type="hidden" id="hidBindType" value="<%=Model.memInfoObj.LoginType %>" />
                <div class="login_avt">
                    <%-- <img src="http://qzapp.qlogo.cn/qzapp/100277861/8811E9FEC9C74F7FD1061E98F591800E/100" />--%>
                    <img src="<%=Model.memInfoObj.WeiBoHeadPic %>" alt="" />
                </div>
                <div class="login_r">
                    <p class="login-title">
                        完善一下信息，注册即可完成</p>
                    <div class="login-list">
                        <lable>类型:</lable>
                        <%=Model.LoginTypeName%>
                    </div>
                    <div class="login-list">
                        <lable>昵称:</lable>
                        <input type="text" id="Nickname" class="login_border" value="<%=Model.memInfoObj.WeiBoNickName %>" />
                    </div>
                    <div class="login-list">
                        <lable>性别:</lable>
                        <input type="text" id="Sex" class="login_border" value="<%=Model.memInfoObj.Sex %>" />
                    </div>
                    <div class="login-list">
                        <input type="button" id="btnRegister" value="确认资料" />
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">
        $(function () {
            $("#btnRegister").click(function () {
                var param = {};
                param.anticache = Math.floor(Math.random() * 1000);
                param.bindUid = $("#hidBindUid").val();
                param.bindType = $("#hidBindType").val();
                param.nickname = $("#Nickname").val();
                param.sex = $("#Sex").val();
                $.post("/home/Register", param, function (json) {
                    if (json.rcode == 1000) {
                        alert(json.rmsg);
                        window.location.href = "/home/index";
                    } else {
                        alert(json.rmsg);
                    }

                },"json")
            });
        })
    </script>
</asp:Content>
